<?php

use yii\db\Migration;

class m180409_032222_alter_cardattr extends Migration
{
    public function safeUp()
    {
        $this->addColumn('{{%card_attr}}', 'student_id', $this->integer()->defaultValue(0)->comment('学员id'));
    }

    public function safeDown()
    {
        $this->dropColumn('{{%card_attr}}', 'student_id');
    }
}
